package models

import "time"

const (
	OrganizationUserRegister = iota
	OrganizationUserMember
	OrganizationUserBan
)

type OrganizationUser struct {
	OrganizationID uint          `json:"organization_id" gorm:"primary_key;AUTO_INCREMENT:false"`
	Organization   *Organization `json:"organization"`

	UserID uint  `json:"user_id" gorm:"primary_key;AUTO_INCREMENT:false"`
	User   *User `json:"user"`

	// 管理员记录

	CreatedAt time.Time
	UpdatedAt time.Time

	// 需要管理员同意才可加入社团
	Status int `json:"status"`
}
